<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <%@include file="/common/common.jspf" %>
    <script type="text/javascript" src="${ctx}/js/store/product/add.js?v=191017">
    </script>
    <style type="text/css">
        .col-sm-3 {
            width: 15%;
            float: left;
            text-align: right;
        }

        .col-sm-9 {
            width: 85%;
            float: left;
            text-align: left;
        }

        label[class^="btn btn-default"] {
            margin-top: -4px;
        }
    </style>
</head>
<body>
<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
<form id="form" name="form" class="form-horizontal" method="post" action="${ctx}/store/product/addEntity.shtml">
    <section class="panel panel-default">
        <div class="panel-body">
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">商品</label>
                </div>
                <div class="col-sm-9">
                    <select id="goodId" name="skuStockFormMap.good_id" class="form-control m-b"
                            tabindex="-1" style="width: 30%;">
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">规格名称</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入规格名称" name="skuStockFormMap.name" style="width: 60%;">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">状态</label>
                </div>
                <div class="col-sm-9">
                    <select id="status" name="skuStockFormMap.status" class="form-control m-b"
                            tabindex="-1" style="width: 30%;" value="${skuStock.status}">
                        <option value="0">正常</option>
                        <option value="1">下架</option>
                    </select>
                    <script type="text/javascript">
                        $("#status").val(${skuStock.status});
                    </script>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">显示顺序</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入显示顺序" name="skuStockFormMap.display_order" style="width: 30%;">
                </div>
            </div>
            <div class=" form-group">
                <div class="col-sm-3">
                    <label class="control-label">商品价格</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入商品价格" name="skuStockFormMap.price" style="width: 60%;">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">商品原价</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入商品原价" name="skuStockFormMap.yprice" style="width: 60%;">
                </div>
            </div>
            <%--<div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">商品邮费</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入商品邮费" name="storeGoodFormMap.sendmonny" style="width: 60%;">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">发货时间</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入发货时间" name="storeGoodFormMap.sendtime" style="width: 60%;">
                </div>
            </div>--%>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">商品库存</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入商品库存" name="skuStockFormMap.stock" style="width: 60%;">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">商品销量</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入商品销量" name="skuStockFormMap.salecount" style="width: 60%;">
                </div>
            </div>
            

            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">商品描述</label>
                </div>
                <div class="col-sm-9">
                    <textarea class="form-control" name="skuStockFormMap.description" style="width: 60%;" rows="4"></textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">商品描述图片</label>
                </div>
                <div class="col-sm-9">
                    <input type="file" class="form-control system-upload-field" data-for="skuStockFormMap.descimgurl" placeholder="请选择图片" name="descfile" style="width: 60%;">
                    <input type="hidden" name="skuStockFormMap.descimgurl">
                </div>
            </div>
           <%-- <div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <label class="col-sm-3 control-label">是否推荐</label>
                <div class="col-sm-9">
                    <div class="btn-group m-r">
                        <button data-toggle="dropdown" class="btn btn-sm btn-default dropdown-toggle">
                            <span class="dropdown-label">是</span>
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu dropdown-select">
                            <li class="active">
                                <a href="#">
                                    <input type="radio" name="skuStockFormMap.is_recommended" value="1" checked="checked">
                                    是
                                </a>
                            </li>
                            <li class="">
                                <a href="#">
                                    <input type="radio" name="skuStockFormMap.is_recommended" value="0">
                                    否
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <label class="col-sm-3 control-label"> </label>
                <div class="col-sm-9">
                    <input type="checkbox" name="skuStockFormMap.is_hidden" class="ace ace-switch ace-switch-5" value="1">
                    是否隐藏
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <label class="col-sm-3 control-label"> </label>
                <div class="col-sm-9">
                    <input type="checkbox" name="skuStockFormMap.is_capable_for_commission" class="ace ace-switch ace-switch-5" value="1">
                    是否支持返佣
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label"> </label>
                <div class="col-sm-9">
                    <input type="checkbox" name="skuStockFormMap.is_capable_for_douback" class="ace ace-switch ace-switch-5" value="1">
                    是否支持返积分
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label"> </label>
                <div class="col-sm-9">
                    <input type="checkbox" name="skuStockFormMap.is_capable_for_refund" class="ace ace-switch ace-switch-5" value="1">
                    是否支持退款
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label"> </label>
                <div class="col-sm-9">
                    <input type="checkbox" name="skuStockFormMap.is_capable_for_voucher" class="ace ace-switch ace-switch-5" value="1">
                    是否支持代金券
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">返积分数量</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入返积分数量" name="skuStockFormMap.douback" style="width: 30%;">
                </div>
            </div>--%>
            <%--<div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">商品图片</label>
                </div>
                <div class="col-sm-9">
                    <input type="file" class="form-control system-upload-field" data-for="skuStockFormMap.imgurl" placeholder="请选择图片" name="file" style="width: 60%;">
                    <input type="hidden" name="skuStockFormMap.imgurl">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">Banners</label>
                </div>
                <div class="col-sm-9">
                    <input type="file" class="form-control system-upload-field-multiple" data-for="skuStockFormMap.a_banners" placeholder="请选择图片" name="file" style="width: 60%;" multiple="multiple">
                    <div class="system-upload-field-multiple-img-wrapper"></div>
                    <textarea style="display: none;" name="skuStockFormMap.a_banners"></textarea>
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>

            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">图文详情</label>
                </div>
                <div class="col-sm-9">
                    <input type="file" class="form-control system-upload-field-multiple" data-for="skuStockFormMap.a_tu_wen_xiang_qing" placeholder="请选择图片" name="file" style="width: 60%;" multiple="multiple">
                    <div class="system-upload-field-multiple-img-wrapper"></div>
                    <textarea style="display: none;" name="skuStockFormMap.a_tu_wen_xiang_qing"></textarea>
                </div>
            </div>--%>
        </div>
        <footer class="panel-footer text-right bg-light lter">
            <button type="submit" class="btn btn-success btn-s-xs">提交</button>
        </footer>
    </section>
</form>
</body>
</html>
